package com.vgemv.jsutilitysdk.JsThread;

/**
 *
 */
public interface JsThreadManagerInterface {
    /**
     * 在主线程,延迟执行指定Runnable
     *
     * @param runnableTask 需要执行的任务
     * @param delay
     * @param isRunImmediately 如果当前就是主线程,是否立即执行.
     */
    public void runInMainThread(final long delay, boolean isRunImmediately, final Runnable runnableTask);

    /**
     * 在子线程中执行
     * @param delay
     * @param runnable
     */
    public void runInSubThread(long delay, Runnable runnable);
}
